package com.czk.pojo;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.ToString;

import java.util.Map;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/8/2 15:10
 */
@ToString
@XStreamAlias("xml")
public class VoiceMessage extends BaseMessage {
    @XStreamAlias("Voice")
    private Voice voice;

    public VoiceMessage(Map<String, String> map, Voice voice) {
        super(map);
        this.voice = voice;
        this.setMsgType("voice");
    }

    public Voice getVoice() {
        return voice;
    }

    public void setVoice(Voice voice) {
        this.voice = voice;
    }
}
